package com.ruoyi.linkage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单机PLC控制逻辑配置对象 linkage_plc_conf
 * 
 * @author pengjie
 * @date 2023-12-20
 */
public class LinkagePlcConf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 测点ID */
    @Excel(name = "测点ID")
    private String sightBookId;

    /** 测点名称 */
    @Excel(name = "测点名称")
    private String sightBookName;

    /** PLC设备ID */
    @Excel(name = "PLC设备ID")
    private String plcId;

    /** PLC设备编号 */
    @Excel(name = "PLC设备编号")
    private String plcCode;

    /** PLC设备名称 */
    @Excel(name = "PLC设备名称")
    private String plcName;

    /** 连接项 */
    @Excel(name = "连接项")
    private String linkItem;

    /** 历史参数 */
    @Excel(name = "历史参数")
    private String historyParam;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateByName;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String extra1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String extra2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String extra3;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSightBookId(String sightBookId) 
    {
        this.sightBookId = sightBookId;
    }

    public String getSightBookId() 
    {
        return sightBookId;
    }
    public void setSightBookName(String sightBookName) 
    {
        this.sightBookName = sightBookName;
    }

    public String getSightBookName() 
    {
        return sightBookName;
    }
    public void setPlcId(String plcId) 
    {
        this.plcId = plcId;
    }

    public String getPlcId() 
    {
        return plcId;
    }
    public void setPlcCode(String plcCode) 
    {
        this.plcCode = plcCode;
    }

    public String getPlcCode() 
    {
        return plcCode;
    }
    public void setPlcName(String plcName) 
    {
        this.plcName = plcName;
    }

    public String getPlcName() 
    {
        return plcName;
    }
    public void setLinkItem(String linkItem) 
    {
        this.linkItem = linkItem;
    }

    public String getLinkItem() 
    {
        return linkItem;
    }
    public void setHistoryParam(String historyParam) 
    {
        this.historyParam = historyParam;
    }

    public String getHistoryParam() 
    {
        return historyParam;
    }
    public void setCreateByName(String createByName) 
    {
        this.createByName = createByName;
    }

    public String getCreateByName() 
    {
        return createByName;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName) 
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName() 
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt) 
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt() 
    {
        return updateAt;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setExtra1(String extra1) 
    {
        this.extra1 = extra1;
    }

    public String getExtra1() 
    {
        return extra1;
    }
    public void setExtra2(String extra2) 
    {
        this.extra2 = extra2;
    }

    public String getExtra2() 
    {
        return extra2;
    }
    public void setExtra3(String extra3) 
    {
        this.extra3 = extra3;
    }

    public String getExtra3() 
    {
        return extra3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sightBookId", getSightBookId())
            .append("sightBookName", getSightBookName())
            .append("plcId", getPlcId())
            .append("plcCode", getPlcCode())
            .append("plcName", getPlcName())
            .append("linkItem", getLinkItem())
            .append("historyParam", getHistoryParam())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("extra1", getExtra1())
            .append("extra2", getExtra2())
            .append("extra3", getExtra3())
            .toString();
    }
}
